package marchsoft.modules.selfFish.pisciculture.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import marchsoft.modules.selfFish.pisciculture.entity.Water;
import marchsoft.modules.selfFish.pisciculture.entity.vo.WaterVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.CacheConfig;

/** 水质管理
 * @title WaterMapper
 * @description 水质管理
 * @author Lenovo
 * @version 1.0
 * @create 2024-07-15 17:02
 */
@Mapper
@CacheConfig(cacheNames = "water")
public interface WaterMapper extends BaseMapper<Water> {

    /** 查询
     * @param waterTemperature: 水温
     * @param page: 分页对象
     * @return IPage<FishVo> 分页数据
     * @description:  获取水质列表
     */
    IPage<WaterVo> getWaterList(Page page, @Param("waterTemperature") String waterTemperature);
}
